<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SWM34S_LVGL7.11_SWMUI: C:/Users/DELL/Desktop/Commit/lvgl/SWM34S_LVGL7.11_SWMUI_20230515/APP/USB/Host/usbh_user.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">SWM34S_LVGL7.11_SWMUI<span id="projectnumber">&#160;V7.9</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.5 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_0ca16891106f5a3e9ad635a0d6c5f98f.html">APP</a></li><li class="navelem"><a class="el" href="dir_688c5dfbd99f3a5435dc860226c47105.html">USB</a></li><li class="navelem"><a class="el" href="dir_057b88310ed2bcdb5bf462b58b010ffd.html">Host</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle"><div class="title">usbh_user.h</div></div>
</div><!--header-->
<div class="contents">
<a href="usbh__user_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="preprocessor">#ifndef __USBH_USER_H__</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span><span class="preprocessor">#define __USBH_USER_H__</span></div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span> </div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span><span class="preprocessor">#include &quot;SWM341.h&quot;</span></div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno">   25</span><span class="preprocessor">#include &quot;usbh_core.h&quot;</span></div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span> </div>
<div class="line"><a id="l00027" name="l00027"></a><span class="lineno">   27</span><span class="preprocessor">#include &quot;<a class="code" href="usbh__conf_8h.html">usbh_conf.h</a>&quot;</span> <span class="comment">/* user config */</span></div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span> </div>
<div class="line"><a id="l00030" name="l00030"></a><span class="lineno"><a class="line" href="usbh__user_8h.html#a7cc8c7cfcdc9b7b7bda512eb7681a30b">   30</a></span><span class="preprocessor">#define TIMR_USB_HOST                BTIMR1</span></div>
<div class="line"><a id="l00031" name="l00031"></a><span class="lineno">   31</span> </div>
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083">   33</a></span><span class="keyword">typedef</span> <span class="keyword">enum</span></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span>{</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno"><a class="line" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083a9667a80a93d18c16f042530a011555aa">   35</a></span>    <a class="code hl_enumvalue" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083a9667a80a93d18c16f042530a011555aa">USB_MODE_IDLE</a> = 0,</div>
<div class="line"><a id="l00036" name="l00036"></a><span class="lineno">   36</span> </div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno"><a class="line" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083ae059ab637616c0a1b1dca3df28dd42a0">   37</a></span>    <a class="code hl_enumvalue" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083ae059ab637616c0a1b1dca3df28dd42a0">USB_MODE_HOST_CDC</a>,</div>
<div class="line"><a id="l00038" name="l00038"></a><span class="lineno"><a class="line" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083a923866cd17a3d5cd6f12cc7fb1c40210">   38</a></span>    <a class="code hl_enumvalue" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083a923866cd17a3d5cd6f12cc7fb1c40210">USB_MODE_HOST_HID</a>,</div>
<div class="line"><a id="l00039" name="l00039"></a><span class="lineno"><a class="line" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083a9dcbcfb5dce2572d52398f4a0a71484f">   39</a></span>    <a class="code hl_enumvalue" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083a9dcbcfb5dce2572d52398f4a0a71484f">USB_MODE_HOST_MSC</a>,</div>
<div class="line"><a id="l00040" name="l00040"></a><span class="lineno">   40</span> </div>
<div class="line"><a id="l00041" name="l00041"></a><span class="lineno"><a class="line" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083a7351581484ec7c7f8abbd4f58777f30a">   41</a></span>    <a class="code hl_enumvalue" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083a7351581484ec7c7f8abbd4f58777f30a">USB_MODE_DEVICE_CDC</a>,</div>
<div class="line"><a id="l00042" name="l00042"></a><span class="lineno"><a class="line" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083a5dd676d85f215f941ff470dda37ceff8">   42</a></span>    <a class="code hl_enumvalue" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083a5dd676d85f215f941ff470dda37ceff8">USB_MODE_DEVICE_HID</a>,</div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno">   43</span>    <a class="code hl_enumvalue" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083ae1d756528efb85856a6b92f34db6c729">USB_MODE_DEVICE_MSC</a></div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno"><a class="line" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083ae1d756528efb85856a6b92f34db6c729">   44</a></span>} <a class="code hl_enumeration" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083">usb_mode_t</a>;</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span> </div>
<div class="line"><a id="l00046" name="l00046"></a><span class="lineno">   46</span><span class="keyword">extern</span> USBH_User_cb_t <a class="code hl_variable" href="usbh__user_8h.html#a865b1913fe55d062e746bc810a114961">USBH_USR_cb</a>;     </div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span><span class="keyword">extern</span> <span class="keyword">volatile</span> <a class="code hl_enumeration" href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083">usb_mode_t</a> <a class="code hl_variable" href="usbh__user_8h.html#a7d48b44a4f70758a7db6679935be7643">USB_State</a>;  </div>
<div class="line"><a id="l00049" name="l00049"></a><span class="lineno">   49</span><span class="preprocessor">#endif </span><span class="comment">//__USBH_USER_H__</span></div>
<div class="ttc" id="ausbh__conf_8h_html"><div class="ttname"><a href="usbh__conf_8h.html">usbh_conf.h</a></div><div class="ttdoc">USB Host Config</div></div>
<div class="ttc" id="ausbh__user_8h_html_a7d48b44a4f70758a7db6679935be7643"><div class="ttname"><a href="usbh__user_8h.html#a7d48b44a4f70758a7db6679935be7643">USB_State</a></div><div class="ttdeci">volatile usb_mode_t USB_State</div><div class="ttdoc">USB 工作状态</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8c_source.html#l00024">usbh_user.c:24</a></div></div>
<div class="ttc" id="ausbh__user_8h_html_a865b1913fe55d062e746bc810a114961"><div class="ttname"><a href="usbh__user_8h.html#a865b1913fe55d062e746bc810a114961">USBH_USR_cb</a></div><div class="ttdeci">USBH_User_cb_t USBH_USR_cb</div><div class="ttdoc">USB_Host 用户回调</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8c_source.html#l00115">usbh_user.c:115</a></div></div>
<div class="ttc" id="ausbh__user_8h_html_ae829d35e41400a0bb30a3c0969152083"><div class="ttname"><a href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083">usb_mode_t</a></div><div class="ttdeci">usb_mode_t</div><div class="ttdoc">枚举 usb 工作状态</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8h_source.html#l00033">usbh_user.h:34</a></div></div>
<div class="ttc" id="ausbh__user_8h_html_ae829d35e41400a0bb30a3c0969152083a5dd676d85f215f941ff470dda37ceff8"><div class="ttname"><a href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083a5dd676d85f215f941ff470dda37ceff8">USB_MODE_DEVICE_HID</a></div><div class="ttdeci">@ USB_MODE_DEVICE_HID</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8h_source.html#l00042">usbh_user.h:42</a></div></div>
<div class="ttc" id="ausbh__user_8h_html_ae829d35e41400a0bb30a3c0969152083a7351581484ec7c7f8abbd4f58777f30a"><div class="ttname"><a href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083a7351581484ec7c7f8abbd4f58777f30a">USB_MODE_DEVICE_CDC</a></div><div class="ttdeci">@ USB_MODE_DEVICE_CDC</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8h_source.html#l00041">usbh_user.h:41</a></div></div>
<div class="ttc" id="ausbh__user_8h_html_ae829d35e41400a0bb30a3c0969152083a923866cd17a3d5cd6f12cc7fb1c40210"><div class="ttname"><a href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083a923866cd17a3d5cd6f12cc7fb1c40210">USB_MODE_HOST_HID</a></div><div class="ttdeci">@ USB_MODE_HOST_HID</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8h_source.html#l00038">usbh_user.h:38</a></div></div>
<div class="ttc" id="ausbh__user_8h_html_ae829d35e41400a0bb30a3c0969152083a9667a80a93d18c16f042530a011555aa"><div class="ttname"><a href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083a9667a80a93d18c16f042530a011555aa">USB_MODE_IDLE</a></div><div class="ttdeci">@ USB_MODE_IDLE</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8h_source.html#l00035">usbh_user.h:35</a></div></div>
<div class="ttc" id="ausbh__user_8h_html_ae829d35e41400a0bb30a3c0969152083a9dcbcfb5dce2572d52398f4a0a71484f"><div class="ttname"><a href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083a9dcbcfb5dce2572d52398f4a0a71484f">USB_MODE_HOST_MSC</a></div><div class="ttdeci">@ USB_MODE_HOST_MSC</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8h_source.html#l00039">usbh_user.h:39</a></div></div>
<div class="ttc" id="ausbh__user_8h_html_ae829d35e41400a0bb30a3c0969152083ae059ab637616c0a1b1dca3df28dd42a0"><div class="ttname"><a href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083ae059ab637616c0a1b1dca3df28dd42a0">USB_MODE_HOST_CDC</a></div><div class="ttdeci">@ USB_MODE_HOST_CDC</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8h_source.html#l00037">usbh_user.h:37</a></div></div>
<div class="ttc" id="ausbh__user_8h_html_ae829d35e41400a0bb30a3c0969152083ae1d756528efb85856a6b92f34db6c729"><div class="ttname"><a href="usbh__user_8h.html#ae829d35e41400a0bb30a3c0969152083ae1d756528efb85856a6b92f34db6c729">USB_MODE_DEVICE_MSC</a></div><div class="ttdeci">@ USB_MODE_DEVICE_MSC</div><div class="ttdef"><b>Definition:</b> <a href="usbh__user_8h_source.html#l00044">usbh_user.h:43</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5
</small></address>
</body>
</html>
